package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品对象 tb_goods
 *
 * @author laowang
 * @date 2022-12-19
 */
@NoArgsConstructor
@Data
public class TbGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${comment}", required = false)
    private String name;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "${comment}", required = false)
    private String title;

    /**
     * 原价
     */
    @Excel(name = "原价")
    @ApiModelProperty(value = "原价", required = false)
    private BigDecimal originalPrice;

    /**
     * 现价
     */
    @Excel(name = "现价")
    @ApiModelProperty(value = "现价", required = false)
    private BigDecimal presentPrice;

    /**
     * 返现金额
     */
    @Excel(name = "返现金额")
    @ApiModelProperty(value = "返现金额", required = false)
    private BigDecimal backAmount;

    /**
     * 头图
     */
    @Excel(name = "头图")
    @ApiModelProperty(value = "头图", required = false)
    private String headImg;

    /**
     * 组图
     */
    @Excel(name = "组图")
    @ApiModelProperty(value = "组图", required = false)
    private String images;

    /**
     * 默认1开启,0关闭
     */
    @Excel(name = "默认1开启,0关闭")
    @ApiModelProperty(value = "默认1开启,0关闭", required = false)
    private Integer isEnable;


    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "额外礼品", required = false)
    private String extraGift;

    @ApiModelProperty(value = "额外礼品", required = false)
    private String parDescription;
}
